import http from "../index";

//查询全部
export const getAll=()=>http({
  url:'/api/adminMenu/getAll',
  method:'get'
})
//新增菜单
export const addMenu=(data)=>http({
  url:'/api/adminMenu/add',
  method:'post',
  data
})
//删除菜单
export const delMenu=(params)=>http({
  url:'/api/adminMenu/delete?'+params,
  method:'delete'
})
//修改菜单
export const updateMenu=(data)=>http({
  url:'/api/adminMenu/update',
  method:'post',
  data
})

export const getMenu=()=>http({
  url:'/api/userMenu/getMenu',
  method:'get'
})
export const show=(params)=>http({
  url:'/api/adminMenu/show?'+params,
  method:'get'
})

export const hide=(params)=>http({
  url:'/api/adminMenu/hide?'+params,
  method:'get'
})
